package com.ctgu.fastleader.service.serviceImpl;

import com.ctgu.fastleader.dao.SupplierMapper;
import com.ctgu.fastleader.service.SupplierService;
import com.ctgu.fastleader.vo.Supplier;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SupplierServiceImpl implements SupplierService {

    @Autowired
    private SupplierMapper supplierMapper;

    @Override
    public List<Supplier> findAllSupplier() {
        return supplierMapper.findAllSupplier();
    }

    @Override
    public List<Supplier> searchSupplierByKey(Integer supid, String supname, String supphone) {
        return supplierMapper.searchSupplierByKey(supid,supname,supphone);
    }

    @Override
    public int insertSelective(Supplier supplier) {
        return supplierMapper.insertSelective(supplier);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return supplierMapper.deleteByPrimaryKey(id);
    }
}
